<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //concat('字符串1','字符串2'，..)
        var str = 'andy';
        console.log(str.concat('pink'));

        //截取字符串substr('截取的初始位置','截取字符串的个数')
        console.log(str.substr(2, 2));

    </script>
</head>

<body>

</body>

</html>